package my.xh.validate;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface CustomException {
    /**
     * @Author xh
     * @Description 自定义抛出的导常类
     * @Date 11:02 2019/9/4
     * @Param []
     * @return java.lang.Class<? extends java.lang.Exception>
     **/
    public Class<? extends Exception> excptionClazz() default IllegalArgumentException.class;
    /**
     * @Author xh
     * @Description 提示消息字段
     * @Date 11:02 2019/9/4
     * @Param []
     * @return java.lang.String
     **/
    public String messageField() default "detailMessage";
}
